feat: add dialog context handling and omit empty text results configuration#2158
Conversation
PR Review — #2158Reviewed: Overall this is a well-scoped change with thoughtful defensive coding in the nested path setter. Below are the concerns worth addressing before merge. Correctness / behavior
Security
Tests
Nits
What looks good
|
a558861 to
d2231b9
Compare
PR Review — #2158Thanks for the patch! Here's my feedback, ordered by severity. 🔴 Blocking — test imports a function that does not exist
from bytedance_llm_based_asr.extension import _apply_string_field_under_paramsBut Two plausible explanations:
Please either add the implementation or remove / rewrite the test file. As-is, CI for this extension should be red. 🟠 Test coverage gaps for the new behaviorThe only test added references a non-existent helper. The actually new, user-visible behavior has no tests:
🟢 Nice catch — but worth calling outThe rewrite around sent = await self._send_asr_result_from_text(...)
if is_final and sent:
has_final_result = Truefixes that. Good. This is exactly the kind of non-obvious invariant that deserves a unit test so it doesn't regress. 🟡
|
d2231b9 to
393290d
Compare
Code Review: PR #2158 — Dialog context handling + omit empty text resultsFocused change with good test coverage for the new helpers. A few observations: Correctness
Design
Logging / security
Tests
Minor
Overall this looks solid — the main things I'd push on are avoiding an unnecessary reconnect on no-op payloads and toning down the new request-section log. |
No description provided.